class Instruction:
    
    def __init__(self, opcode, prog):
        self.opCode = opcode
        self.burst = 1
        self.nameProg = prog
    
    def typeInstruction(self):
        if self.opCode == "CPU":
            return 'CPU %d' % (self.burst)
        elif self.opCode == "IO":
            return 'IO %d' % (self.burst)
        elif self.opCode == 'END':
            return 'END'
        
    def __repr__(self):
        return '[Instr: %s Prog: %s]' % (self.opCode, self.nameProg)
    